package cn.haixiang.org.service;


import cn.haixiang.basice.util.PageList;
import cn.haixiang.org.domain.Employee;
import cn.haixiang.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {

    /*查询employee所有*/
    List<Employee> findAll();

    /*根据id进行查询 */
    Employee findById(Long id);

    /*根据id进行修改*/
    void update(Employee employee);

    /*根据id进行删除*/
    void delete(Long id);

    /*根据用户进行新增*/
    void add(Employee employee);

    // 查询分页
    PageList<Employee> queryByPage(EmployeeQuery query);

    void batchDelete(List<Long> ids);
}
